package com.edu.base.ums.clsSchool.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Transient;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学校包括学校和教育机构对象 cls_school
 * 
 * @author lzs
 * @date 2021-05-25
 */
public class ClsSchool extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 学校类型：
            1-学校
            2-教育机构 */
    @Excel(name = "学校类型：    1-学校  2-教育机构")
    private String schoolType;

    /** 学界 */
    @Excel(name = "学界")
    private String schoolName;

    /** 学校logoURL */
    @Excel(name = "学校logoURL")
    private String schoolLogoUrl;

    /** 学校星级   最高5星 区间（0~50） */
    @Excel(name = "学校星级   最高5星 区间", readConverterExp = "0=~50")
    private Long schoolLevel;

    /** 学校简介 */
    @Excel(name = "学校简介")
    private String schoolIntroduce;

    /** 学校联系电话 */
    @Excel(name = "学校联系电话")
    private String schoolTel;

    /** 状态
            0：无效
            1：有效 */
    @Excel(name = "状态  0：无效    1：有效")
    private String status;

    /** $column.columnComment */
     private String parentId;

    /** 省代码 */
    @Excel(name = "省代码")
    private String provCode;
    
    @Transient
    private String provName;
    

    /** 城市代码 */
    @Excel(name = "城市代码")
    private String cityCode;
    
    @Transient
    private String cityName;

    /** 区县代码 */
    @Excel(name = "区县代码")
    private String countryCode;
    
    @Transient
    private String countryName;

    /** 学校地址 */
    @Excel(name = "学校地址")
    private String address;

    /** 学校地址经度 */
    @Excel(name = "学校地址经度")
    private String longitude;

    /** 学校地址纬度 */
    @Excel(name = "学校地址纬度")
    private String latitude;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除标记(0:正常 1:删除 ) */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setSchoolType(String schoolType) 
    {
        this.schoolType = schoolType;
    }

    public String getSchoolType() 
    {
        return schoolType;
    }
    public void setSchoolName(String schoolName) 
    {
        this.schoolName = schoolName;
    }

    public String getSchoolName() 
    {
        return schoolName;
    }
    public void setSchoolLogoUrl(String schoolLogoUrl) 
    {
        this.schoolLogoUrl = schoolLogoUrl;
    }

    public String getSchoolLogoUrl() 
    {
        return schoolLogoUrl;
    }
    public void setSchoolLevel(Long schoolLevel) 
    {
        this.schoolLevel = schoolLevel;
    }

    public Long getSchoolLevel() 
    {
        return schoolLevel;
    }
    public void setSchoolIntroduce(String schoolIntroduce) 
    {
        this.schoolIntroduce = schoolIntroduce;
    }

    public String getSchoolIntroduce() 
    {
        return schoolIntroduce;
    }
    public void setSchoolTel(String schoolTel) 
    {
        this.schoolTel = schoolTel;
    }

    public String getSchoolTel() 
    {
        return schoolTel;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setProvCode(String provCode) 
    {
        this.provCode = provCode;
    }

    public String getProvCode() 
    {
        return provCode;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setCountryCode(String countryCode) 
    {
        this.countryCode = countryCode;
    }

    public String getCountryCode() 
    {
        return countryCode;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setLongitude(String longitude) 
    {
        this.longitude = longitude;
    }

    public String getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(String latitude) 
    {
        this.latitude = latitude;
    }

    public String getLatitude() 
    {
        return latitude;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schoolType", getSchoolType())
            .append("schoolName", getSchoolName())
            .append("schoolLogoUrl", getSchoolLogoUrl())
            .append("schoolLevel", getSchoolLevel())
            .append("schoolIntroduce", getSchoolIntroduce())
            .append("schoolTel", getSchoolTel())
            .append("status", getStatus())
            .append("parentId", getParentId())
            .append("provCode", getProvCode())
            .append("cityCode", getCityCode())
            .append("countryCode", getCountryCode())
            .append("address", getAddress())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("createDate", getCreateDate())
            .append("createBy", getCreateBy())
            .append("updateDate", getUpdateDate())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
   
    
 
	public String getProvName() {
		return provName;
	}

	public void setProvName(String provName) {
		this.provName = provName;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getCountryName() {
		return countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}
    
    
}
